from django.urls import path
from rest_framework import routers
# from apps.system.views.DemoView import DemoViewSet
from system.views.Demo import DemoViewSet

system_url = routers.SimpleRouter()
system_url.register(r'demo', DemoViewSet)
app_name='system'
urlpatterns = [
    # 以下可以看做是对上面方法的补充
    # path('user/export/', UserViewSet.as_view({'post': 'export_data', })),
    # path('user/import/', UserViewSet.as_view({'get': 'import_data', 'post': 'import_data'})),
    # path('system_config/save_content/', SystemConfigViewSet.as_view({'put': 'save_content'})),
    # path('system_config/get_association_table/', SystemConfigViewSet.as_view({'get': 'get_association_table'})),
    # path('system_config/get_table_data/<int:pk>/', SystemConfigViewSet.as_view({'get': 'get_table_data'})),
    # path('system_config/get_relation_info/', SystemConfigViewSet.as_view({'get': 'get_relation_info'})),
    # path('login_log/', LoginLogViewSet.as_view({'get': 'list'})),
    # path('login_log/<int:pk>/', LoginLogViewSet.as_view({'get': 'retrieve'})),
    # path('dept_lazy_tree/', DeptViewSet.as_view({'get': 'dept_lazy_tree'})),
]
urlpatterns += system_url.urls
